package main

import (
	"github.com/astaxie/beego"
	"github.com/astaxie/beego/orm"
	"grab-train-ticket/grab-ticket4go/models"
	_ "grab-train-ticket/grab-ticket4go/routers"
)

func init() {
	models.RegisterDB() //注册、连接数据库
}

func main() {
	orm.Debug = true
	orm.RunSyncdb("default", false, true)
	beego.Run()
}
